<include file="../Public/header"/>


<!-- 中部内容 -->
<div id="content">
	
	<div class="container">
		
		<div class="row">
			<!-- 左边 -->
			<include file="../Public/left"/>
			<!-- 中间 -->
			
			
			<div class="span9">
				
				<h1 class="page-title">
					<i class="icon-user"></i>
					用户账户					
				</h1>
				
				
				<div class="row">
					
					<div class="span9">
				
						<div class="widget">
							
							<div class="widget-header">
								<h3>用户基本信息</h3>
							</div> <!-- /widget-header -->
									
							<div class="widget-content">
								
								
								
								<div class="tabbable">
						<ul class="nav nav-tabs">
						<if condition="$type == changepw">
							
						  <li>
						    <a href="#1" data-toggle="tab">基本信息</a>
						  </li>
						  <li class="active"><a href="#2" data-toggle="tab">修改密码</a></li>
						  <else />
						  
						  <li class="active">
						    <a href="#1" data-toggle="tab">基本信息</a>
						  </li>
						  <li><a href="#2" data-toggle="tab">修改密码</a></li>	
						  </if>
						</ul>
						
						<br />
						
							<div class="tab-content">
							<if condition="$type == changepw">
							 <div class="tab-pane" id="1">
							  <else />
							 <div class="tab-pane active" id="1">
							  </if>
								
								<form id="edit-profile" class="form-horizontal" method="post" action="{:U('partner/User/editOK')}">
									<input type='hidden' name="pid" value="{$partner['pid']}" />
									<fieldset>
										
										<div class="control-group">											
											<label class="control-label" for="email">邮箱地址</label>
											<div class="controls">
												<input type="text" class="input-medium disabled" id="email" name="email" value="{$partner['email']}" disabled="" />
												<p class="help-block">账户用作登录 ， 不能修改。</p>
											</div> <!-- /controls -->				
										</div> <!-- /control-group -->
										
										
										<div class="control-group">											
											<label class="control-label" for="firstname">公司名称</label>
											<div class="controls">
												<input type="text" class="input-medium" id="firstname" name="name"  value="{$partner['name']}"/>
											</div> <!-- /controls -->				
										</div> <!-- /control-group -->
										
										
										<div class="control-group">											
											<label class="control-label" for="contact">联系人名称</label>
											<div class="controls">
												<input type="text" class="input-medium" id="contact" name="contact" value="{$partner['contact']}" />
											</div> <!-- /controls -->				
										</div> <!-- /control-group -->
										
										
										<div class="control-group">											
											<label class="control-label" for="email">联系人电话</label>
											<div class="controls">
												<input type="text" class="input-large" id="phone"  id="phone" name="phone" value="{$partner['phone']}" />
											</div> <!-- /controls -->				
										</div> <!-- /control-group -->
										<div class="control-group">											
											<label class="control-label" for="email">联系人qq</label>
											<div class="controls">
												<input type="text" class="input-large" id="qq" name="qq" value="{$partner['qq']}" />
											</div> <!-- /controls -->				
										</div> <!-- /control-group -->
				
										<hr/>
										<div class="control-group">											
											<label class="control-label" for="password1">密码确认</label>
											<div class="controls">
												<input type="password" class="input-medium" id="password"  name="password" value="" />
											</div> <!-- /controls -->				
										</div> <!-- /control-group -->
										
										
										
											
											<br />
										
											
										<div class="form-actions">
											<button type="submit" class="btn btn-primary">确定</button> 
											<a class="btn" href="{:U('partner/User/index')}">取消</a>
										</div> <!-- /form-actions -->
									</fieldset>
								</form>
								</div>
								<if condition="$type == changepw">
									 <div class="tab-pane  active" id="2">
									  <else />
									 <div class="tab-pane" id="2">
								  </if>
								
									<form id="edit-profile2" class="form-horizontal" method="post" action="{:U('partner/User/changePassword')}" >
										<input type='hidden' name="pid" value="{$partner['pid']}" />
										<fieldset>
											<div class="control-group">											
											<label class="control-label" for="password1">原始密码</label>
											<div class="controls">
												<input type="password" class="input-medium" id="oldpassword" name="oldpassword" value="" />
											</div> <!-- /controls -->				
										</div> <!-- /control-group -->
										<hr />
											<div class="control-group">											
											<label class="control-label" for="password1">新密码</label>
											<div class="controls">
												<input type="password" class="input-medium" id="password1" name="password" value="" />
											</div> <!-- /controls -->				
										</div> <!-- /control-group -->
										
										
										<div class="control-group">											
											<label class="control-label" for="password2">确认新密码</label>
											<div class="controls">
												<input type="password" class="input-medium" id="password2" name="confirmpassword" value="" />
											</div> <!-- /controls -->				
										</div> <!-- /control-group -->

											
											<br />
											
											<div class="form-actions">
												<button type="submit" class="btn btn-primary">保存</button> <a class="btn" href="{:U('partner/User/index')}">取消</a>
											</div>
										</fieldset>
									</form>
								</div>
								
							</div>
						  
						  
						</div>
							
						
					</div> <!-- /span9 -->
					
				</div> <!-- /row -->
				
				
			</div> <!-- /span9 -->
			
		
			
			
		</div> <!-- /row -->
		
	</div> <!-- /container -->
	
</div> <!-- /content -->
					
<include file="../Public/footer"/>
